chore: cd workflow#3935
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3935 +/- ##
=======================================
Coverage 93.32% 93.32%
=======================================
Files 88 88
Lines 11827 11827
=======================================
Hits 11037 11037
Misses 790 790 🚀 New features to boost your workflow:
|
|
If I understand this right here, we can get rid of this "make a unique version script" since the version should be unqiuely identified by a commit and it doesn't really make sense to run this twice on the same commit |
…into chore/publish-metadata-package
|
@ilan-gold good point, that script is now gone |
|
I become so used to our own dev setup, I forget what doesn't happen by default! |
Yes, vcs versioning for zarr metadata would be great! I think we can define a regex that matches git tags like |
|
Ok will have a look in the morning! |
…into chore/publish-metadata-package
ilan-gold
left a comment
There was a problem hiding this comment.
What immediately jumps out at me (I think claude mentioned this) is documenting this convention, probably in the README.md for this package.
…-v-b/zarr-python into chore/publish-metadata-package
| defined in `zarr-extensions`. We are generally open to contributions that | ||
| add types for Zarr metadata with a published spec. | ||
|
|
||
| ## Releasing |
|
A change worth noting: to ensure that the github releases page only shows zarr-python releases, zarr-metadata is released by pushing tags. this is documented in the zarr-metadata readme. |
Pulls in the upstream-main work that landed on the remote branch after the previous local merge: PR zarr-developers#3975 (refactor _ShardIndex to store chunks_per_shard explicitly), PR zarr-developers#3908 (cache default ArraySpec), zarr-developers#3935 (cd workflow), zarr-developers#3978 (zarr-metadata constants), zarr-developers#3979 (drop fixed-length utf32 warning). Conflicts resolved: - src/zarr/codecs/sharding.py imports: drop the now-unused `from operator import itemgetter` per zarr-developers#3975, keep our `ClassVar, Final, Literal` additions for the enum-deprecation types. - tests/test_codecs/test_sharding.py imports: combine `from zarr.core.metadata.v3 import ArrayV3Metadata` (ours, for the dict-shards coverage test) with `from zarr.core.indexing import c_order_iter` (theirs, for the new vectorized-slice tests). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
this adds a cd workflow for
zarr-metadatawe either publish to pypi, in which case the version declared in the package is used, or we publish to testpypi, in which case a synthetic, unique version is created to ensure that we never have a conflict on testpypi.
this workflow only supports workflow dispatch right now. later PRs will add a tag-based release workflow.
TODO:
docs/user-guide/*.mdchanges/